<?php
class Zend_View_Helper_DrawDash extends Zend_View_Helper_Abstract
{
	protected $ft;
	public function __construct()
	{
    	$this->ft = true;
	}
	
	
	public function Draw($Array,$Prefix = '')
	{
		if (  count($Array)  ) 
		{
			echo "<ul style='list-style:none;'>";
			foreach ($Array as $Value)
			{
				echo '<li style=""><span style="font-size:15px;font-weight:bold"><h2>' . $Value['Name'] . '</h2></span>';
                if( isset($Value['sub']) && count($Value['sub']) ) 
                {
                    $ArraySub = $Value['sub'];
                    echo "<ul class='menu2'   style='list-style:none;'>"; 
                	foreach($ArraySub as $Value2)
                	{
                        echo "<li class='item42'><a href='" . $this->view->baseUrl("view/list-{$Value2['ID']}.html") . "'><span>{$Value2['Name']}</span></a></li>";            		
                	}                	
                	echo '</ul>';
                }
                echo "</li>"; 
			}
			echo "<ul>";
		}
	}
	
	public function drawDash($Menu)
	{
       $this->Draw($Menu);
	}
}